<?php

namespace frontend\controllers\restful;

use common\models\Cart;
use common\models\Product;
use Yii;
use yii\rest\Controller;

class ProductController extends Controller
{
    public function actionIndex()
    {
        $products = Product::find()->where(['status'=>1])->all();
        return $products;
    }
}
